using System;

namespace SQLServices.Runners.Events
{
	/// <summary>
	/// Used to nofify that an error took place when a script file was executed
	/// </summary>
	public class ScriptExecutionErrorEventArgs : EventArgs
	{

		private readonly string _fileName;
		private readonly string _errorMsg;

		public ScriptExecutionErrorEventArgs( string fileName, string errorMsg)
		{
			_fileName = fileName;
			_errorMsg = errorMsg;
		}
		public string FileName
		{
			get { return _fileName; }
		}

		public string ErrorMsg
		{
			get { return _errorMsg; }
		}

	}
}